{% extends "qa_base.html" %}

{% block content %}
 <div id="wrapper"> 
            <div id="room"> 
                <div id="CAFull"> 
					<div class="tabBar"> 
    					<div class="headQuestions">标签列表</div> 
						<div class="tabsA"><a href="/qa/questions/tags/?sort=name" {% if content == 'name' %}class="on"{% endif %} title="按名称的字母先后顺序排序">按名称排序</a><a href="/qa/questions/tags/?sort=used" {% if content == 'count' %}class="on"{% endif %} title="按标签被使用的次数排序">by popularity</a></div> 
 					</div> 
				<div id="searchtags"> 
					<p> </p> 
					<ul class="tagsList tags"> 
                    {% for tag in tag_all_list %}
    				    <li> 
   							<a class="tag-link-{{tag.name}}" href="/qa/tags/{{tag.name}}/" title="查看有关'{{tag.name}}'的问题" rel="tag">{{tag.name|slice:':22'}}{%if tag.name|length >= 22 %}..{%endif%}</a>
    						<span class="tag-number">&#215; {{tag.count}}</span> 
    						<br/> 
   						</li>                     
                    {% endfor %}
					</ul> 
				</div> 

                </div> 
                <div id="tail" style="clear:both;"></div> 
                {% if PageList%}
                                <div class="pager">
                         
                    <p class="paginator" >
                       {% if LastNum >= 1 %}
                       <span class="next"><a href="/qa/questions/pages/{{LastNum}}" title="上一页">&laquo; 上一页</a></span>
                        {% endif %}
                        {% for PageNum in PageList%}
                        {% if PageNum == CurrentNum %}
                        <span class="curr this_page" >{{PageNum}}</span>
                        {% else %}
                        <a class="page" href="/qa/questions/tags/pages/{{PageNum}}" >{{PageNum}}</a>
                        {% endif %}
                        {% endfor %}
                        {% if NextNum <= PageTotalNum %}
                        <span class="next"><a href="/qa/questions/tags/pages/{{NextNum}}" title="下一页">下一页 &raquo;</a></span>
                        {% endif %}
                    </p>
                </div>
                {% endif %}
            </div> 
            <div class="spacer3"></div> 
        </div> 
{% endblock%}